Optimal. Leaf size=138 \[ -\frac {a c^3}{2 x}-\frac {5}{4} a^3 c^3 x-\frac {1}{12} a^5 c^3 x^3+\frac {3}{4} a^2 c^3 \text {ArcTan}(a x)-\frac {c^3 \text {ArcTan}(a x)}{2 x^2}+\frac {3}{2} a^4 c^3 x^2 \text {ArcTan}(a x)+\frac {1}{4} a^6 c^3 x^4 \text {ArcTan}(a x)+\frac {3}{2} i a^2 c^3 \text {PolyLog}(2,-i a x)-\frac {3}{2} i a^2 c^3 \text {PolyLog}(2,i a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 8, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {5068, 4946,
331, 209, 4940, 2438, 327, 308} \begin {gather*} \frac {1}{4} a^6 c^3 x^4 \text {ArcTan}(a x)-\frac {1}{12} a^5 c^3 x^3+\frac {3}{2} a^4 c^3 x^2 \text {ArcTan}(a x)-\frac {5}{4} a^3 c^3 x+\frac {3}{4} a^2 c^3 \text {ArcTan}(a x)+\frac {3}{2} i a^2 c^3 \text {Li}_2(-i a x)-\frac {3}{2} i a^2 c^3 \text {Li}_2(i a x)-\frac {c^3 \text {ArcTan}(a x)}{2 x^2}-\frac {a c^3}{2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 308
Rule 327
Rule 331
Rule 2438
Rule 4940
Rule 4946
Rule 5068
Rubi steps
\begin {align*} \int \frac {\left (c+a^2 c x^2\right )^3 \tan ^{-1}(a x)}{x^3} \, dx &=\int \left (\frac {c^3 \tan ^{-1}(a x)}{x^3}+\frac {3 a^2 c^3 \tan ^{-1}(a x)}{x}+3 a^4 c^3 x \tan ^{-1}(a x)+a^6 c^3 x^3 \tan ^{-1}(a x)\right ) \, dx\\ &=c^3 \int \frac {\tan ^{-1}(a x)}{x^3} \, dx+\left (3 a^2 c^3\right ) \int \frac {\tan ^{-1}(a x)}{x} \, dx+\left (3 a^4 c^3\right ) \int x \tan ^{-1}(a x) \, dx+\left (a^6 c^3\right ) \int x^3 \tan ^{-1}(a x) \, dx\\ &=-\frac {c^3 \tan ^{-1}(a x)}{2 x^2}+\frac {3}{2} a^4 c^3 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^6 c^3 x^4 \tan ^{-1}(a x)+\frac {1}{2} \left (a c^3\right ) \int \frac {1}{x^2 \left (1+a^2 x^2\right )} \, dx+\frac {1}{2} \left (3 i a^2 c^3\right ) \int \frac {\log (1-i a x)}{x} \, dx-\frac {1}{2} \left (3 i a^2 c^3\right ) \int \frac {\log (1+i a x)}{x} \, dx-\frac {1}{2} \left (3 a^5 c^3\right ) \int \frac {x^2}{1+a^2 x^2} \, dx-\frac {1}{4} \left (a^7 c^3\right ) \int \frac {x^4}{1+a^2 x^2} \, dx\\ &=-\frac {a c^3}{2 x}-\frac {3}{2} a^3 c^3 x-\frac {c^3 \tan ^{-1}(a x)}{2 x^2}+\frac {3}{2} a^4 c^3 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^6 c^3 x^4 \tan ^{-1}(a x)+\frac {3}{2} i a^2 c^3 \text {Li}_2(-i a x)-\frac {3}{2} i a^2 c^3 \text {Li}_2(i a x)-\frac {1}{2} \left (a^3 c^3\right ) \int \frac {1}{1+a^2 x^2} \, dx+\frac {1}{2} \left (3 a^3 c^3\right ) \int \frac {1}{1+a^2 x^2} \, dx-\frac {1}{4} \left (a^7 c^3\right ) \int \left (-\frac {1}{a^4}+\frac {x^2}{a^2}+\frac {1}{a^4 \left (1+a^2 x^2\right )}\right ) \, dx\\ &=-\frac {a c^3}{2 x}-\frac {5}{4} a^3 c^3 x-\frac {1}{12} a^5 c^3 x^3+a^2 c^3 \tan ^{-1}(a x)-\frac {c^3 \tan ^{-1}(a x)}{2 x^2}+\frac {3}{2} a^4 c^3 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^6 c^3 x^4 \tan ^{-1}(a x)+\frac {3}{2} i a^2 c^3 \text {Li}_2(-i a x)-\frac {3}{2} i a^2 c^3 \text {Li}_2(i a x)-\frac {1}{4} \left (a^3 c^3\right ) \int \frac {1}{1+a^2 x^2} \, dx\\ &=-\frac {a c^3}{2 x}-\frac {5}{4} a^3 c^3 x-\frac {1}{12} a^5 c^3 x^3+\frac {3}{4} a^2 c^3 \tan ^{-1}(a x)-\frac {c^3 \tan ^{-1}(a x)}{2 x^2}+\frac {3}{2} a^4 c^3 x^2 \tan ^{-1}(a x)+\frac {1}{4} a^6 c^3 x^4 \tan ^{-1}(a x)+\frac {3}{2} i a^2 c^3 \text {Li}_2(-i a x)-\frac {3}{2} i a^2 c^3 \text {Li}_2(i a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 109, normalized size = 0.79 \begin {gather*} \frac {c^3 \left (-6 a x-15 a^3 x^3-a^5 x^5-6 \text {ArcTan}(a x)+9 a^2 x^2 \text {ArcTan}(a x)+18 a^4 x^4 \text {ArcTan}(a x)+3 a^6 x^6 \text {ArcTan}(a x)+18 i a^2 x^2 \text {PolyLog}(2,-i a x)-18 i a^2 x^2 \text {PolyLog}(2,i a x)\right )}{12 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 148, normalized size = 1.07
method | result | size |
derivativedivides | \(a^{2} \left (\frac {a^{4} c^{3} x^{4} \arctan \left (a x \right )}{4}+\frac {3 a^{2} c^{3} x^{2} \arctan \left (a x \right )}{2}-\frac {c^{3} \arctan \left (a x \right )}{2 a^{2} x^{2}}+3 c^{3} \arctan \left (a x \right ) \ln \left (a x \right )-\frac {c^{3} \left (\frac {a^{3} x^{3}}{3}+5 a x +\frac {2}{a x}-3 \arctan \left (a x \right )-6 i \ln \left (a x \right ) \ln \left (i a x +1\right )+6 i \ln \left (a x \right ) \ln \left (-i a x +1\right )-6 i \dilog \left (i a x +1\right )+6 i \dilog \left (-i a x +1\right )\right )}{4}\right )\) | \(148\) |
default | \(a^{2} \left (\frac {a^{4} c^{3} x^{4} \arctan \left (a x \right )}{4}+\frac {3 a^{2} c^{3} x^{2} \arctan \left (a x \right )}{2}-\frac {c^{3} \arctan \left (a x \right )}{2 a^{2} x^{2}}+3 c^{3} \arctan \left (a x \right ) \ln \left (a x \right )-\frac {c^{3} \left (\frac {a^{3} x^{3}}{3}+5 a x +\frac {2}{a x}-3 \arctan \left (a x \right )-6 i \ln \left (a x \right ) \ln \left (i a x +1\right )+6 i \ln \left (a x \right ) \ln \left (-i a x +1\right )-6 i \dilog \left (i a x +1\right )+6 i \dilog \left (-i a x +1\right )\right )}{4}\right )\) | \(148\) |
meijerg | \(\frac {a^{2} c^{3} \left (\frac {a x \left (-5 a^{2} x^{2}+15\right )}{15}-\frac {a x \left (-5 a^{4} x^{4}+5\right ) \arctan \left (\sqrt {a^{2} x^{2}}\right )}{5 \sqrt {a^{2} x^{2}}}\right )}{4}+\frac {3 a^{2} c^{3} \left (-2 a x +\frac {2 \left (3 a^{2} x^{2}+3\right ) \arctan \left (a x \right )}{3}\right )}{4}+\frac {3 a^{2} c^{3} \left (-\frac {2 i a x \polylog \left (2, i \sqrt {a^{2} x^{2}}\right )}{\sqrt {a^{2} x^{2}}}+\frac {2 i a x \polylog \left (2, -i \sqrt {a^{2} x^{2}}\right )}{\sqrt {a^{2} x^{2}}}\right )}{4}+\frac {a^{2} c^{3} \left (-\frac {2}{a x}-\frac {2 \left (a^{2} x^{2}+1\right ) \arctan \left (a x \right )}{a^{2} x^{2}}\right )}{4}\) | \(190\) |
risch | \(-\frac {3 i c^{3} a^{2} \dilog \left (-i a x +1\right )}{2}+\frac {i c^{3} a^{2} \ln \left (-i a x \right )}{4}+\frac {i c^{3} a^{6} \ln \left (-i a x +1\right ) x^{4}}{8}+\frac {3 a^{2} c^{3} \arctan \left (a x \right )}{4}-\frac {a^{5} c^{3} x^{3}}{12}-\frac {5 a^{3} c^{3} x}{4}+\frac {3 i c^{3} a^{4} \ln \left (-i a x +1\right ) x^{2}}{4}-\frac {i c^{3} a^{2} \ln \left (i a x \right )}{4}-\frac {a \,c^{3}}{2 x}+\frac {3 i c^{3} a^{2} \dilog \left (i a x +1\right )}{2}-\frac {i c^{3} \ln \left (-i a x +1\right )}{4 x^{2}}-\frac {i c^{3} a^{6} \ln \left (i a x +1\right ) x^{4}}{8}-\frac {3 i c^{3} a^{4} \ln \left (i a x +1\right ) x^{2}}{4}+\frac {i c^{3} \ln \left (i a x +1\right )}{4 x^{2}}\) | \(221\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 155, normalized size = 1.12 \begin {gather*} -\frac {a^{5} c^{3} x^{5} + 15 \, a^{3} c^{3} x^{3} + 9 \, \pi a^{2} c^{3} x^{2} \log \left (a^{2} x^{2} + 1\right ) - 36 \, a^{2} c^{3} x^{2} \arctan \left (a x\right ) \log \left (a x\right ) + 18 i \, a^{2} c^{3} x^{2} {\rm Li}_2\left (i \, a x + 1\right ) - 18 i \, a^{2} c^{3} x^{2} {\rm Li}_2\left (-i \, a x + 1\right ) + 6 \, a c^{3} x - 3 \, {\left (a^{6} c^{3} x^{6} + 6 \, a^{4} c^{3} x^{4} + 3 \, a^{2} c^{3} x^{2} - 2 \, c^{3}\right )} \arctan \left (a x\right )}{12 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} c^{3} \left (\int \frac {\operatorname {atan}{\left (a x \right )}}{x^{3}}\, dx + \int \frac {3 a^{2} \operatorname {atan}{\left (a x \right )}}{x}\, dx + \int 3 a^{4} x \operatorname {atan}{\left (a x \right )}\, dx + \int a^{6} x^{3} \operatorname {atan}{\left (a x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.57, size = 152, normalized size = 1.10 \begin {gather*} \left \{\begin {array}{cl} 0 & \text {\ if\ \ }a=0\\ 3\,a^4\,c^3\,\mathrm {atan}\left (a\,x\right )\,\left (\frac {1}{2\,a^2}+\frac {x^2}{2}\right )-\frac {a^2\,c^3\,\left (3\,\mathrm {atan}\left (a\,x\right )-3\,a\,x+a^3\,x^3\right )}{12}-\frac {c^3\,\mathrm {atan}\left (a\,x\right )}{2\,x^2}-\frac {c^3\,\left (a^3\,\mathrm {atan}\left (a\,x\right )+\frac {a^2}{x}\right )}{2\,a}-\frac {3\,a^3\,c^3\,x}{2}+\frac {a^6\,c^3\,x^4\,\mathrm {atan}\left (a\,x\right )}{4}-\frac {a^2\,c^3\,{\mathrm {Li}}_{\mathrm {2}}\left (1-a\,x\,1{}\mathrm {i}\right )\,3{}\mathrm {i}}{2}+\frac {a^2\,c^3\,{\mathrm {Li}}_{\mathrm {2}}\left (1+a\,x\,1{}\mathrm {i}\right )\,3{}\mathrm {i}}{2} & \text {\ if\ \ }a\neq 0 \end {array}\right . \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________